<?php
/**
 * Created by PhpStorm.
 * User: 刚
 * Date: 2017/7/31
 * Time: 23:14
 */
include_once('BridgeBookAuthorTitle.php');
include_once('BridgeBookTitleAuthor.php');

define('BR', '<' . 'BR' . '>');

echo 'BEGIN TESTING BRIDGE PATTERN' . BR;
echo BR;

echo 'test 1 - author title with caps' . BR;
$book = new BridgeBookAuthorTitle('Larry Truett', 'PHP for Cats', 'CAPS');
echo $book->showAuthorTitle();
echo BR . BR;

echo 'test 2 -author title with starts' . BR;
$book = new BridgeBookAuthorTitle('larry Truett', 'PHP for Cats', 'STARS');
echo $book->showAuthorTitle();
echo BR . BR;

echo 'test 3 - title author with caps' . BR;
$book = new BridgeBookTitleAuthor('Larry truett', 'PHP for Cats', 'CAPS');
echo $book->showTitleAuthor();
echo BR . BR;

echo 'test 4 -title author with starts' . BR;
$book = new BridgeBookTitleAuthor('Larry truett', 'PHP for Cats', 'STARS');
echo $book->showTitleAuthor();
echo BR . BR;

echo 'END TESTING BRIDGE PATTERN' . BR;